﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace BLL
{
    public class PhanloaiBLL
    {
        private static PhanloaiDAL db = new PhanloaiDAL();

        #region[Phanloai_Insert]
        public static void Phanloai_Insert(PhanloaiInfo data)
        {
            db.Phanloai_Insert(data);
        }
        #endregion

        #region[Phanloai_Update]
        public static void Phanloai_Update(PhanloaiInfo data)
        {
            db.Phanloai_Update(data);
        }
        #endregion

        #region[Phanloai_Delete]
        public static void Phanloai_Delete(string id)
        {
            db.Phanloai_Delete(id);
        }
        #endregion

        #region[Phanloai_GetByAll]
        public static DataTable Phanloai_GetByAll()
        {
            return db.Phanloai_GetByAll();
        }
        #endregion

        #region[Phanloai_GetById]
        public static DataTable Phanloai_GetById(string id)
        {
            return db.Phanloai_GetById(id);
        }
        #endregion

        #region[Phanloai_GetByTop]
        public static DataTable Phanloai_GetByTop(string Top, string Where, string Order)
        {
            return db.Phanloai_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
